package com.tinycloud.miracll.product.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tinycloud.common.core.annotation.Excel;
import com.tinycloud.common.core.web.domain.BaseEntity;

/**
 * Scada报警对象 product_scada_alarm
 * 
 * @author tiny
 * @date 2021-12-10
 */
public class ScadaAlarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private String id;

    /** scadaNodeID */
    private Long projNodeId;

    /** 报警日期 */
    private String logDate;

    /** 报警时间 */
    private String logTime;

    /** 报警日期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报警日期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date logTimeAll;

    /** 报警级别 */
    @Excel(name = "报警级别")
    private String priority;

    /** 点位名称 */
    private String tagName;

    /** 点位描述 */
    @Excel(name = "点位描述")
    private String description;

    /** 报警活动 */
    @Excel(name = "报警活动")
    private String action;

    /** 操作人 */
    @Excel(name = "操作人")
    private String userName;

    /** node名称（操作人电脑哦） */
    @Excel(name = "node名称", readConverterExp = "操=作人电脑哦")
    private String nodeName;

    /** nodeip（操作人ip） */
    @Excel(name = "nodeip", readConverterExp = "操=作人ip")
    private String nodeIP;

    /** 报警组 */
    @Excel(name = "报警组")
    private String almGroup;

    /** 报警值 */
    @Excel(name = "报警值")
    private BigDecimal alarmValue;

    /** 报警界限 */
    @Excel(name = "报警界限")
    private BigDecimal alarmLimit;

    /** 数据清洗时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据清洗时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dataCleanTime;

    /** 与scada同步时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "与scada同步时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date syncTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setProjNodeId(Long projNodeId) 
    {
        this.projNodeId = projNodeId;
    }

    public Long getProjNodeId() 
    {
        return projNodeId;
    }
    public void setLogDate(String logDate) 
    {
        this.logDate = logDate;
    }

    public String getLogDate() 
    {
        return logDate;
    }
    public void setLogTime(String logTime) 
    {
        this.logTime = logTime;
    }

    public String getLogTime() 
    {
        return logTime;
    }
    public void setLogTimeAll(Date logTimeAll) 
    {
        this.logTimeAll = logTimeAll;
    }

    public Date getLogTimeAll() 
    {
        return logTimeAll;
    }
    public void setPriority(String priority) 
    {
        this.priority = priority;
    }

    public String getPriority() 
    {
        return priority;
    }
    public void setTagName(String tagName) 
    {
        this.tagName = tagName;
    }

    public String getTagName() 
    {
        return tagName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setAction(String action) 
    {
        this.action = action;
    }

    public String getAction() 
    {
        return action;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setNodeName(String nodeName) 
    {
        this.nodeName = nodeName;
    }

    public String getNodeName() 
    {
        return nodeName;
    }
    public void setNodeIP(String nodeIP) 
    {
        this.nodeIP = nodeIP;
    }

    public String getNodeIP() 
    {
        return nodeIP;
    }
    public void setAlmGroup(String almGroup) 
    {
        this.almGroup = almGroup;
    }

    public String getAlmGroup() 
    {
        return almGroup;
    }
    public void setAlarmValue(BigDecimal alarmValue) 
    {
        this.alarmValue = alarmValue;
    }

    public BigDecimal getAlarmValue() 
    {
        return alarmValue;
    }
    public void setAlarmLimit(BigDecimal alarmLimit) 
    {
        this.alarmLimit = alarmLimit;
    }

    public BigDecimal getAlarmLimit() 
    {
        return alarmLimit;
    }
    public void setDataCleanTime(Date dataCleanTime) 
    {
        this.dataCleanTime = dataCleanTime;
    }

    public Date getDataCleanTime() 
    {
        return dataCleanTime;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projNodeId", getProjNodeId())
            .append("logDate", getLogDate())
            .append("logTime", getLogTime())
            .append("logTimeAll", getLogTimeAll())
            .append("priority", getPriority())
            .append("tagName", getTagName())
            .append("description", getDescription())
            .append("action", getAction())
            .append("userName", getUserName())
            .append("nodeName", getNodeName())
            .append("nodeIP", getNodeIP())
            .append("almGroup", getAlmGroup())
            .append("alarmValue", getAlarmValue())
            .append("alarmLimit", getAlarmLimit())
            .append("dataCleanTime", getDataCleanTime())
            .append("syncTime", getSyncTime())
            .toString();
    }
}
